public class Test {
    public static void main(String[] args) {
        Date date=new Date();
        Date date2=new Date();
        //private修饰无法直接访问date.year;
        date.setDate(2024,7,23);
        date.printDate();
    }



}
